package com.yanqu.road.server.cmd.strongholdwar;

import com.yanqu.road.pb.activity.StrongholdWarProto;
import com.yanqu.road.server.cmd.CrossCommand;
import com.yanqu.road.server.cmd.CrossUnionCommand;
import com.yanqu.road.server.command.Cmd;
import com.yanqu.road.server.manager.strongholdwar.CrossStrongholdActivityMgr;
import com.yanqu.road.message.YanQuMessage;
import com.yanqu.road.server.protocol.Protocol;

@Cmd(code = Protocol.C_CROSS_STRONGHOLD_RELOAD_ACTIVITY_INFO,desc = "")
public class CrossReloadStorngholdActivityCmd extends CrossCommand {
    private int activityId;
    @Override
    public boolean parseData(YanQuMessage packet) throws Exception {
        StrongholdWarProto.CrossStrongholdReloadReqMsg req = StrongholdWarProto.CrossStrongholdReloadReqMsg.parseFrom(packet.getBytes());
        activityId = req.getActivityId();
        return true;
    }

    @Override
    public void execute(YanQuMessage packet) throws Exception {
//        CrossStrongholdActivityMgr.reloadActivityInfo(activityId);
    }

    @Override
    public void sendData() {

    }
}
